<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of IndexObject
 *
 * @author thanhdx
 */
class IndexController extends Controller{
    //put your code here
    public function indexAction(){
        $data['xt'] = "Xin chào";
        $entry = $this->getModel("Blog");

        $this->loadView('home', $entry->load(1)->getData());
    }
    public function helloworldAction(){
        $data['xt'] = "Hello World";
        $this->loadView('home', $data);
    }
}

?>
